package com.zhm.demo.queue;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class QueueTest {

    @Autowired
    private OrderEventProducer orderEventProducer;

    @PostConstruct
    public void init() {
        orderEventProducer.onData("orderRequest.getUserId()", 12);
    }
}
